from selenium import webdriver
from time import sleep
driver = webdriver.Chrome(r'E:\谷歌\chromedriver.exe')
driver.get('http://localhost:8000/#/customers')
ele=driver.find_element_by_xpath('//main//div')
sleep(5)
ele=driver.find_element_by_xpath("//button['type=button']")
ele.click()
sleep(1)
ele=driver.find_element_by_xpath('//main//div')
ele=driver.find_element_by_xpath('//*[@id="root"]/div/div/section/section/main/div/div/div[2]/div/div/form[1]/div[1]/div[2]/div/span/input')
ele.send_keys('1111')
sleep(1)
ele=driver.find_element_by_xpath('//*[@id="root"]/div/div/section/section/main/div/div/div[2]/div/div/form[1]/div[2]/div[2]/div/span/input')
ele.send_keys('1111')
sleep(1)
ele=driver.find_element_by_xpath('//*[@id="root"]/div/div/section/section/main/div/div/div[2]/div/div/form[2]/div[1]/div[2]/div/span/input')
ele.send_keys('1362321407@qq.com')
sleep(1)
ele=driver.find_element_by_xpath('//*[@id="root"]/div/div/section/section/main/div/div/div[2]/div/div/form[2]/div[2]/div[2]/div/span/span/span/input')
ele.send_keys('12345678912')
sleep(1)
ele=driver.find_elements_by_css_selector('//*[@id="prefix"]')
ele.click()
sleep(1)
ele=driver.find_elements_by_css_selector('//*[@id="9f624411-22df-4314-c7a5-59d77f494c54"]/ul/li[2]')
ele.click()
sleep(1)
ele=driver.find_element_by_xpath('//*[@id="root"]/div/div/section/section/main/div/div[1]/div[3]/div[2]/div/form[1]/div[1]/div/div/span/input')
ele.send_keys('ooo')
sleep(1)
ele=driver.find_element_by_xpath('//*[@id="root"]/div/div/section/section/main/div/div[1]/div[3]/div[2]/div/form[1]/div[2]/div/div/span/input')
ele.send_keys('o888')
sleep(1)
ele=driver.find_element_by_xpath('//*[@id="root"]/div/div/section/section/main/div/div[1]/div[3]/div[2]/div/form[2]/div[1]/div[2]/div/span/input')
ele.send_keys('1111')
sleep(1)
ele=driver.find_element_by_xpath('//*[@id="root"]/div/div/section/section/main/div/div[1]/div[3]/div[2]/div/form[2]/div[2]/div[2]/div/span/input')
ele.send_keys('888')
sleep(1)
ele=driver.find_element_by_xpath('//*[@id="root"]/div/div/section/section/main/div/div[1]/div[3]/div[2]/div/form[2]/div[3]/div[2]/div/span/input')
ele.send_keys('999')
ele=driver.find_element_by_xpath('//*[@id="root"]/div/div/section/section/main/div/div[1]/div[3]/div[2]/div/form[2]/div[4]/div[2]/div/span/input')
ele.send_keys('8520')
sleep(1)
ele=driver.find_elements_by_css_selector('//*[@id="root"]/div/div/section/section/main/div/div[1]/div[3]/div[2]/div/form[2]/form/div[1]/div/div/span/div')
ele.click()
sleep(1)
ele=driver.find_elements_by_css_selector('//*[@id="efefae6c-1430-4477-f9ff-701f981cc481"]/ul/li[2]')
ele.click()
sleep(1)
ele=driver.find_elements_by_css_selector('//*[@id="root"]/div/div/section/section/main/div/div[1]/div[3]/div[2]/div/form[2]/form/div[2]/div/div/span/div')
ele.click()
sleep(1)
ele=driver.find_element_by_xpath('//*[@id="root"]/div/div/section/section/main/div/div[1]/div[3]/div[2]/div/form[2]/form/div[3]/div/div/span/input')
ele.send_keys('pppppp')
pass
